﻿namespace Pibby.Core.IO
{
	using System.Collections.ObjectModel;
	using System.Collections.Generic;

	public class IFolderCollection : Collection<IFolder>
	{
		public void SortByName()
		{
			List<IFolder> items = (List<IFolder>)this.Items;

			// sort descending
			items.Sort(delegate(IFolder f1, IFolder f2) { return f1.Name.CompareTo(f2.Name); });
		}
	}
}
